@echo off

c:\Windows\Microsoft.NET\Framework\v3.5\csc.exe %cd%\src\GenerateResources.cs
%cd%\GenerateResources.exe
del %cd%\GenerateResources.exe

if exist %cd%\bin\ (del /q %cd%\bin\*.*) else mkdir %cd%\bin\

copy /y %cd%\ChangeLog.txt %cd%\bin\
copy /y %cd%\README_chs.txt %cd%\bin\
copy /y %cd%\Licence_gpl-3.0.txt %cd%\bin\

c:\Windows\Microsoft.NET\Framework\v3.5\csc.exe /r:system.windows.forms.dll /res:%cd%\ChinaWeatherGadget.resources /win32icon:%cd%\icon\48x48.ico /t:winexe /out:%cd%\bin\WeatherGadget.exe %cd%\src\AssemblyInfo.cs %cd%\src\CityID_Database.cs %cd%\src\CurrentCondition.cs %cd%\src\Form_About.cs %cd%\src\Form_EditCityList.cs %cd%\src\Form_EditOneCity.cs %cd%\src\Form_Main.cs %cd%\src\Form_Main.Designer.1.cs %cd%\src\Form_Main.Designer.2.cs %cd%\src\NewButton.cs %cd%\src\NewComboBox.cs %cd%\src\NewListBox.cs %cd%\src\NewTabControl.cs %cd%\src\Struct_SingleCity.cs %cd%\src\UserDefinedCities.cs %cd%\src\WeatherForecast.cs

del %cd%\ChinaWeatherGadget.resources

pause
